﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace game
{
    public class ShipTracePSystem : ObjectTracePSystem
    {
        public ShipTracePSystem(Scene scene, Vector3 position)
            : base(scene, position)
        {

        }

        protected override void InitParameters()
        {
            textureName = "Textures\\darkgradient";
            effectName = "Effects\\BillboardParticle";
            effectTechName = "AxisAlignedBillboardParticleAdditiveBlending";

            Acceleration = -0.00f;
            maxParticles = 50;

            emitTimeAccumMs = 5.0f;

            emitter = new ParticleEmitter(this, emitTimeAccumMs, position);

            MinInitialSpeed = 0.0f;
            MaxInitialSpeed = 0.0f;
            MinInitialSize = 20.0f;
            MaxInitialSize = 20.0f;
            MinLifeTimeMs = 160;
            MaxLifeTimeMs = 160;

            color = Color.White;

            lifetimePolicy = LifetimePolicy.SINUS_OFFSET;
            sizePolicy = SizePolicy.WIDTH_EXACT;
        }
    }
}
